package com.laowang.project.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import com.laowang.framework.web.domain.PageObject;
import com.laowang.project.system.domain.vo.CarResultObject;
import com.laowang.project.system.domain.vo.LifeCircleComment;
import com.laowang.project.system.domain.vo.WxUserVo2;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 我的生活圈对象 my_life_circle
 *
 * @author laowang
 * @date 2023-04-19
 */
@NoArgsConstructor
@Data
public class MyLifeCircle extends PageObject implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * $column.columnComment
     */
    @Excel(name = "内容", readConverterExp = "$column.readConverterExp()")
    @ApiModelProperty(value = "内容", required = false)
    private String content;

    /**
     * 地址
     */
    @Excel(name = "地址")
    @ApiModelProperty(value = "地址", required = false)
    private String address;

    /**
     * 分类id
     */
    @Excel(name = "分类id")
    @ApiModelProperty(value = "分类id", required = false)
    private Integer classId;

    @ApiModelProperty(value = "评论数量", required = false)
    private Integer commentNum;

    @ApiModelProperty(value = "点赞数量", required = false)
    private Integer likeNum;

    /**
     * 分类名称
     */
    @Excel(name = "分类名称")
    @ApiModelProperty(value = "分类名称", required = false)
    private String className;

    /**
     * 地址
     */
    @Excel(name = "地址")
    @ApiModelProperty(value = "地址", required = false)
    private String url;

    @Transient
    private String nickname;

    @Transient
    private String avatar;

    @Transient
    private String groupName;

    @Transient
    private String fupai;

    @Transient
    private String position;

    /**
     * 关联人
     */
    @Excel(name = "关联人")
    @ApiModelProperty(value = "关联人", required = false)
    private Integer userId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Transient
    private List<LifeCircleComment> commentList;

    @Transient
    private List<CarResultObject> cartList;

    @Transient
    private List<WxUserVo2>   wxUserVo2s;
}
